﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Motoball.screenmanager
{
    public abstract class OptionsSelectScreen:MenuScreen
    {
        public OptionsSelectScreen(string screenName)
            : base(screenName)
        {
        }

        #region Methods
        protected override void SelectEntry()
        {
            if (DoSomething())
            {
                AudioManager.PlayCue("menu_click_new");
                toNextMenu = true;
                screenState = ScreenState.Exiting;
            }
            else
                AudioManager.PlayCue("no_energy");
        }

        

        /// <summary>
        /// interface for any options to select-menu
        /// </summary>
        /// <returns>returns true if enter accepted, interaction is done
        /// and screen is ready to exit</returns>
        abstract protected bool DoSomething();
        #endregion
    }
}
